import 'package:get_storage/get_storage.dart';
import 'package:industry_net/base/common/keys.dart';

class GlobalState {
  static final GlobalState instance = GlobalState._interval();
  factory GlobalState() => instance;
  GlobalState._interval() {
    init();
  }
  init() {
    _token = GetStorage().read(key_store_user_token);
  }

  String? _token;
  String? get token {
    return _token ?? GetStorage().read(key_store_user_token);
  }
}
